lib/gpg: Use g_spawn_sync to kill gpg-agent
authorDan Nicholson <nicholson@endlessm.com>
Fri, 6 Sep 2019 22:52:15 +0000 (16:52 -0600)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sat, 7 Sep 2019 18:42:22 +0000 (18:42 +0000)
commite49060c207fd201f71316bf174e1b467827abc7a
treea0abf80b6e3e4b0215adf0adbc520424bc1dd31d
parentd14472a7f04d02d392d2754cfb3cec881aadc704
lib/gpg: Use g_spawn_sync to kill gpg-agent

For reasons I don't understand, GSubprocess doesn't play nice with KDE's
plasmashell. I assume this has something to do with the GSubprocess
using the glib worker thread while plasmashell uses the glib main
loop. Instead, just use g_spawn_sync to fork and wait in the current
thread.

Fixes: #1913
Closes: #1917
Approved by: cgwalters
src/libotutil/ot-gpg-utils.c